65530a46ab0cbbdd8ebd6dead40604b7c6f12e8a,src/main/java/com/emc/atmos/sync/plugins/cas/CuaFilesystemDestination.java,CuaFilesystemDestination,filter,#SyncObject#,57
Before Change
FPClip sourceClip = clipSync.getClip();
// looking for clips with a specific name
if (!sourceClip.getName().equals(CLIP_NAME))
throw new RuntimeException(String.format("skipped clip %s (clip name did not match)", clipSync.getClipId()));
ClipTag blobTag = null;
String filePath = null;
Date itime = null, mtime = null, atime = null;
long uid = 0, gid = 0, hi = 0, lo = 0;
for (ClipTag clipTag : clipSync.getTags()) {
FPTag sourceTag = clipTag.getTag();
if (sourceTag.getTagName().equals(ATTRIBUTE_TAG_NAME)) {
// pull all pertinent attributes
filePath = sourceTag.getStringAttribute(PATH_ATTRIBUTE);
uid = sourceTag.getLongAttribute(UID_ATTRIBUTE);
gid = sourceTag.getLongAttribute(GID_ATTRIBUTE);
itime = new Date(sourceTag.getLongAttribute(ITIME_ATTRIBUTE));
mtime = new Date(sourceTag.getLongAttribute(MTIME_ATTRIBUTE));
atime = new Date(sourceTag.getLongAttribute(ATIME_ATTRIBUTE));
hi = sourceTag.getLongAttribute(SIZE_HI_ATTRIBUTE);
lo = sourceTag.getLongAttribute(SIZE_LO_ATTRIBUTE);
} else if (sourceTag.getTagName().equals(BLOB_TAG_NAME)) {
After Change
FPClip sourceClip = clipSync.getClip();
// looking for clips with a specific name
if (!sourceClip.getName().equals(CLIP_NAME)) {
LogMF.debug(l4j, "skipped clip {0} (clip name did not match)", clipSync.getClipId());
} else {
ClipTag blobTag = null;
String filePath = null;
Date itime = null, mtime = null, atime = null;
long hi = 0, lo = 0;
for (ClipTag clipTag : clipSync.getTags()) {
FPTag sourceTag = clipTag.getTag();
if (sourceTag.getTagName().equals(ATTRIBUTE_TAG_NAME)) {
// pull all pertinent attributes
filePath = sourceTag.getStringAttribute(PATH_ATTRIBUTE);
itime = new Date(sourceTag.getLongAttribute(ITIME_ATTRIBUTE) * 1000); // tag value is in seconds
mtime = new Date(sourceTag.getLongAttribute(MTIME_ATTRIBUTE) * 1000); // .. convert to ms
atime = new Date(sourceTag.getLongAttribute(ATIME_ATTRIBUTE) * 1000);
hi = sourceTag.getLongAttribute(SIZE_HI_ATTRIBUTE);
lo = sourceTag.getLongAttribute(SIZE_LO_ATTRIBUTE);
} else if (sourceTag.getTagName().equals(BLOB_TAG_NAME)) {